package com.woniu.his.sms.client;

import com.woniu.his.result.Result;
import com.woniu.his.sms.client.param.QueryAllDeptWorkLoadParam;
import com.woniu.his.sms.client.result.QueryAllDeptWorkLoadResult;
import com.woniu.his.sms.client.result.QueryWorkLoadByDeptIdResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId="SmsWorkLoadRecordClient",name="sms",path = "sms")
public interface SmsWorkLoadRecordClient {

    /**
     * 为某员工增加某天的工作量记录
     *
     * @param staffId 员工id
     * @return {@link Result}
     */
    @GetMapping("/addWorkLoadRecordForStaff")
    public Result addWorkLoadRecordForStaff(@RequestParam("staffId") Long staffId);

    /**
     * 查询所有科室工作量  条件 时间
     *
     * @param param 参数
     * @return {@link Result}<{@link QueryAllDeptWorkLoadResult}>
     */
    @PostMapping("/queryAllDeptWorkLoad")
    public Result<QueryAllDeptWorkLoadResult> queryAllDeptWorkLoad(@RequestBody QueryAllDeptWorkLoadParam param);

    /**
     * 查询某个科室的所有工作量
     *
     * @param
     * @return {@link Result}<{@link QueryWorkLoadByDeptIdResult}>
     */
    @GetMapping("/queryWorkLoadByDeptId")
    public Result<QueryWorkLoadByDeptIdResult> queryWorkLoadByDeptId(@RequestParam("deptId") Long deptId);
}
